package models

import (
	"time"

	"gorm.io/gorm"
)

//管理员
type Administrator struct {
	ID        uint `gorm:"primarykey"`
	CreatedAt time.Time
	UpdatedAt time.Time
	DeletedAt gorm.DeletedAt `gorm:"index"`

	Key string //唯一身份标识--使用哈希+加密

	UserId uint `gorm:"unique;not null"`
	User   User `gorm:"foreignKey:UserId"`
}
